// Help
// 
// 保佑没Bug 
//
// Created by AS on 2019/4/8. 
//
// Copyright © 2018 AS. All rights reserved.
// 

#import "MModel.h"

@implementation MModel
+ (NSDictionary *)mj_replacedKeyFromPropertyName{
    return @{@"name": @"lotteryCategoryName",@"code":@"parentLotteryCategoryCode",
             @"preiods":@"lotteryPeriods",@"iconUrl":@"lotteryCategoryLogoUrl",
             @"openTime":@"lotteryOpenTime",@"openNumber":@"lotteryOpenNumber",
             @"subCode":@"lotteryCategoryCode",@"nextTime":@"nextOpenTime"
             };
}

-(void)setNextTime:(NSString *)nextTime{
    _nextTime = nextTime;
    _nextInterval = [[nextTime stringWithDate:@"yyyy-MM-dd HH:mm:ss"] timeIntervalSince1970];
}

-(void)setOpenTime:(NSString *)openTime{
    _openTime = [[openTime stringWithDate:@"yyyy-MM-dd HH:mm:ss"] dateFormat:@"MM-dd HH:mm:ss"];
}



-(void)setOpenNumber:(NSString *)openNumber{
    _openNumber = openNumber;
    _openNumbers = [openNumber componentsSeparatedByString:@","];
}

@end
